package com.oa.bean.work;

import java.util.Date;
import java.util.Set;

/**
 * 部门表
 */
public class Dept {
	private int did;// 部门id
	private String dname;// 部门名称
	private int status;// 状态
	private Date createtime;// 创建时间

	private Set<Emp> emps;// 一个部门有多个员工

	private Set<Patorl> patorl; // 一个部门被某一此巡查

	public Set<Patorl> getPatorl() {
		return patorl;
	}

	public void setPatorl(Set<Patorl> patorl) {
		this.patorl = patorl;
	}

	public Dept() {
	}

	public Dept(int did, String dname, int status, Date createtime) {
		this.did = did;
		this.dname = dname;
		this.status = status;
		this.createtime = createtime;
	}

	public Set<Emp> getEmps() {
		return emps;
	}

	public void setEmps(Set<Emp> emps) {
		this.emps = emps;
	}

	public int getDid() {
		return did;
	}

	public void setDid(int did) {
		this.did = did;
	}

	public String getDname() {
		return dname;
	}

	public void setDname(String dname) {
		this.dname = dname;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Override
	public String toString() {
		return "Dept [did=" + did + ", dname=" + dname + ", status=" + status + ", createtime=" + createtime + "]";
	}

}
